package com.gagakuai.domain.facts;

import java.util.Objects;

/**
 * @description: 事实数据
 * @author: houhong
 * @create: 2024-09-07 10:57
 **/
public class Fact<T> {


    private final String name;
    private final T value;

    public Fact(String name, T value) {

        Objects.requireNonNull(name,"name must not be null");
        Objects.requireNonNull(value,"value must not be null");
        this.name = name;
        this.value = value;
    }


    public String getName() {
        return name;
    }

    public T getValue() {
        return value;
    }
}
